<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8" %>
<%@  taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<!DOCTYPE html>
<html lang="en">
<%@ include file="../common/head.jsp" %>

<body class="fix-header fix-sidebar">

<!-- Preloader - style you can find in spinners.css -->
<div class="preloader">
    <svg class="circular" viewBox="25 25 50 50">
        <circle class="path" cx="50" cy="50" r="20" fill="none"
                stroke-width="2" stroke-miterlimit="10"/>
    </svg>
</div>
<!-- Main wrapper  -->
<div id="main-wrapper">
    <!-- header header  -->
    <%@ include file="../common/header.jsp" %>
    <!-- End header header -->
    <!-- Left Sidebar  -->
    <%@ include file="../common/nav.jsp" %>
    <!-- End Left Sidebar  -->
    <!-- Page wrapper  -->
    <div class="page-wrapper">
        <!-- 锐高软件 -->
        <%@ include file="../common/ruigao.jsp" %>

        <!-- 内容  -->
        <div class="container-fluid">
            <!-- Start Page Content -->
            <div class="row">
                <div class="col-12">
                    <div class="card">
                        <div class="card-body">
                            <div class="card-content">
                                <!-- Left sidebar -->
                                <div class="inbox-leftbar">

                                    <a href="${pageContext.request.contextPath}/company_list.jsp"
                                       class="btn btn-danger btn-block waves-effect waves-light">返回列表</a>
                                </div>
                                <!-- End Left sidebar -->
                                <div class="inbox-rightbar">

                                    <div class="m-t-10 m-b-20" role="toolbar">
                                        <div class="btn-group">
                                            <button type="button" class="btn btn-light waves-effect">
                                                <i class="mdi mdi-archive font-18 vertical-middle"></i>
                                            </button>
                                            <button type="button" class="btn btn-light waves-effect">
                                                <i class="mdi mdi-alert-octagon font-18 vertical-middle"></i>
                                            </button>
                                            <button type="button" class="btn btn-light waves-effect">
                                                <i class="mdi mdi-delete-variant font-18 vertical-middle"></i>
                                            </button>
                                        </div>


                                    </div>

                                    <div class="mt-4">
                                        <c:forEach var="companyidlist" items="${companyidlist}">


                                            <h5>${companyidlist.companyName}</h5>

                                            <hr/>

                                            <div class="media mb-4 mt-1">
                                                <img class="d-flex mr-3 rounded-circle thumb-sm"
                                                     src="${pageContext.request.contextPath}/images/users/avatar-2.jpg"
                                                     alt="Generic placeholder image">
                                                <div class="media-body">
													<span class="pull-right" style="color: #000000;">创办时间:<a>
													<fmt:formatDate type="both" value="${companyidlist.companyTime}"
                                                                    pattern="yyyy-MM-dd"/>
													</a></span>
                                                    <h6 class="m-0">
                                                        创办人:<a>${companyidlist.companyUsername}</a>
                                                    </h6>

                                                </div>
                                            </div>


                                            <div class="media mb-4 mt-1">
                                                <div class="media-body">
                                                    <h4 class="m-0">公司性质</h4>
                                                    <p style="text-align: center;">
                                                            ${companyidlist.companyNature}
                                                    </p>
                                                </div>
                                            </div>


                                            <div class="media mb-4 mt-1">
                                                <div class="media-body">
                                                    <h4 class="m-0">公司规模</h4>
                                                    <p style="text-align: center;">
                                                            ${companyidlist.companyScope}
                                                    </p>
                                                </div>
                                            </div>

                                            <div class="form-group row">
                                                <h4 class="m-0">公司背景</h4>

                                                <div class="form-group">
                                                    <br>
                                                    <textarea name="name" id="val-skill" rows="2" cols="100"
                                                              class="form-control valid" style="height: 200px;"
                                                              aria-invalid="false">
                                                            ${companyidlist.companyBackground}
                                                    </textarea>
                                                </div>
                                            </div>


                                            <div class="form-group row">
                                                <h4 class="m-0">企业文化</h4>

                                                <div class="form-group">
                                                    <br>
                                                    <textarea name="name" id="val-skill" rows="2" cols="100"
                                                              class="form-control valid" style="height: 200px;"
                                                              aria-invalid="false">
                                                            ${companyidlist.companyCulture}
                                                    </textarea>
                                                </div>
                                            </div>


                                            <div class="form-group row">
                                                <h4 class="m-0">业务范围</h4>

                                                <div class="form-group">
                                                    <br>
                                                    <textarea name="name" id="val-skill" rows="2" cols="100"
                                                              class="form-control valid" style="height: 200px;"
                                                              aria-invalid="false">
                                                            ${companyidlist.companyRange}
                                                    </textarea>
                                                </div>
                                            </div>


                                            <div class="form-group row">
                                                <h4 class="m-0">规章制度</h4>

                                                <div class="form-group">
                                                    <br>
                                                    <textarea name="name" id="val-skill" rows="2" cols="100"
                                                              class="form-control valid" style="height: 200px;"
                                                              aria-invalid="false">
                                                            ${companyidlist.companyRule}
                                                    </textarea>
                                                </div>
                                            </div>


                                        </c:forEach>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <!-- End PAge Content -->
        </div>
        <!-- End Container fluid  -->
    </div>
    <!-- /# column -->
</div>
<!-- footer -->
<%@ include file="../common/footer.jsp" %>
<!-- End footer -->
<!-- End Page wrapper  -->
<%@ include file="../common/js.jsp" %>

</body>

</html>